<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>预约后台管理-后台管理</title>
    <link rel="stylesheet" href="__PUBLIC__/console/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/console/css/admin.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/layer/layer.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/checkAll.js"></script>
   
    <script src='/Public/js/spectrum.js'></script>
    <script src="__PUBLIC__/console/js/jquery.js"></script>
    <script src="__PUBLIC__/console/js/pintuer.js"></script>
    <script src="__PUBLIC__/console/js/respond.js"></script>
    <script src="__PUBLIC__/console/js/admin.js"></script>
    <script src="__PUBLIC__/console/js/laydate.js"></script>
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
</head>


<!--头部 end-->
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
 <body>
<div class="lefter">
    <div class="logo"><a href="/console/index"><img src="__PUBLIC__/console/images/logo.png" alt="后台管理系统" /></a></div>
</div>
<div class="righter nav-navicon" id="admin-nav">
    <div class="mainer">
        <div class="admin-navbar">
            <span class="float-right">
              <a class="button button-little bg-main" href="/home" target="_blank">前台首页</a>
                <a class="button button-little bg-yellow" href="/Console/Base/quit">注销登录</a>
            </span>
            <ul class="nav nav-inline admin-nav">
                <li class="active"><a href="index.html" class="icon-home"> 开始</a>

                <ul>
                  <li id="shubiao"><a href="/console/console/">后台管理</a></li>
        
                  <li id="shubiao"><a href="/console/team">预约管理</a></li>
                  <li id="shubiao"><a href="/console/Blyuyue">病例预约</a></li>

                  <li id="shubiao"><a href="/console/leave">留言管理</a></li> 

                  <li id="shubiao"><a href="/Console/product">医生管理</a></li>
                  <li id="shubiao"><a href="/Console/type">科室管理</a></li>
                  <li id="shubiao"><a href="/Console/hosturl">URL路径设置</a></li>
                </ul>
                </li>
                
            </ul>
        </div>
        <div class="admin-bread">
            <span>您好，admin，欢迎您的光临。</span>
            <ul class="bread">
                <li><a href="index.html" class="icon-home"> 开始</a></li>
                <li>后台首页</li>
            </ul>
        </div>
    </div>
</div>
<!--内容页-->
<div class="admin">
    <div class="line-big">
        
       
 <!--菜单 end-->
<form  id='crewForm' >
			<div class="form-group">
                    <div class="label"><label for="title">URL</label></div>
                    <div class="field">
                        <input type="text" class="input"  name="img_url" size="20" value="<?php echo ($result["img_url"]); ?>" placeholder="请填写url"  style="width:40%;" />
                        <p>添加http不用写/</p>
                    </div>
            </div>


              <div class="form-group">
                    <div class="label"><label for="readme">简洁介绍</label></div>
                    <div class="field">
                        <textarea class="input" name="cont" rows="5" cols="50" placeholder="内容简介说明" data-validate="required:内容简介说明"><?php echo ($result["cont"]); ?></textarea>
                    </div>
                </div>
                <div align="center"><font color="green">留言时间:</font>&nbsp;&nbsp;&nbsp;<font color="red"><?php echo ($result["add_time"]); ?></font></div>
<p>&nbsp;</p>
                       <input type="hidden" name="id" value="<?php echo ($result["id"]); ?>">
       <div class="form-button" align="center"><button class="button bg-main" id="sure" type="submit">提交</button>
       	<button class="button bg-main" onclick="history.go(-1)" href="">返回</button></div>

</form>


            <br/>
          </div>
    </div>
   


</body>
</html>
 
 <!--底部 end-->
 <script>

    //异步表单提交
        $('#sure').click(function(){

            $.post('/Console/hosturl/doUpdate',$('form').serialize(),function(data){

                if ( data.status )
                {
                    layer.alert(data.info, 1);

                    //刷新当前页
                    location.href = "/Console/hosturl";
                }
                else
                {

                    layer.alert(data.info);

                }

            },'json');

            return false;

        })

</script>